<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.fick.hibernate.model.Admin"%>
<%@ page import="com.fick.hibernate.dao.*" %>
<%@ page import="java.util.List" %>
<%@page import="com.fick.hibernate.dao.RoleDAO"%>
<%@page import="com.fick.hibernate.model.Role"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>密码设置</title>
<style type="text/css">
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {font-size: 12px}
.STYLE4 {
	font-size: 12px;
	color: #1F4A65;
	font-weight: bold;
}

a:link {
	font-size: 12px;
	color: #06482a;
	text-decoration: none;

}
a:visited {
	font-size: 12px;
	color: #06482a;
	text-decoration: none;
}
a:hover {
	font-size: 12px;
	color: #FF0000;
	text-decoration: underline;
}
a:active {
	font-size: 12px;
	color: #FF0000;
	text-decoration: none;
}
.STYLE7 {font-size: 12px;}

</style>
<script type="text/javascript">
<%
if(request.getAttribute("info")!=null && request.getAttribute("info").toString().length()>0){
	%>
	alert("<%=request.getAttribute("info").toString()%>");
	<%
}
%>
function check(){
	if(form1.oldpass.value==""){
		alert("请选择旧密码!");
		form1.oldpass.focus();
		return false;
	}
	if(form1.newpass.value==""){
		alert("请填写新密码!");
		form1.newpass.focus();
		return false;
	}
	if(form1.newpass1.value==""){
		alert("请填写确认密码!");
		form1.newpass1.focus();
		return false;
	}
	if(form1.newpass.value!=form1.newpass1.value){
		alert("确认密码要和新密码一样!");
		form1.newpass1.focus();
		return false;
	}
	form1.submit();
}
</script>

</head>

<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="30"><img src="images/tab_03.gif" width="15" height="30" /></td>
        <td width="1101" background="images/tab_05.gif"><img src="images/311.gif" width="16" height="16" />
			<span class="STYLE4">密码修改页面</span></td>
        <td width="281" background="images/tab_05.gif">
        &nbsp;
        </td>
        <td width="14"><img src="images/tab_07.gif" width="14" height="30" /></td>
      </tr>
    </table>
    </td>
  </tr>
  <tr>
    <td>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="9" background="images/tab_12.gif">&nbsp;</td>
        <td bgcolor="#f3ffe3">
        <form name="form1" id="form1" action="../admin/login.do" method="post"  />
	  <table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D7DFE1">
        <tr>
          <td width="30%" height="25" align="right" valign="middle" bgcolor="#FFFFFF" class="STYLE1">旧密码：</td>
          <td height="25" align="left" valign="middle" bgcolor="#FFFFFF" style="padding-left:7px">
		  <INPUT value="" onMouseOver="" style="BORDER-RIGHT: #f7f7f7 0px solid; BORDER-TOP: #f7f7f7 0px solid; FONT-SIZE: 9pt; BORDER-LEFT: #f7f7f7 0px solid; WIDTH: 100px; BORDER-BOTTOM: #c0c0c0 1px solid; HEIGHT: 16px; BACKGROUND-COLOR: #EEE1ED" onfocus=this.select(); onMouseOut="" maxLength="50" name="oldpass" id="oldpass" type="password" value="" this.style.background="#ffffff";>
		  <font color="red"><span id="res">*</span></font>
		  </td>
        </tr>
        <tr>
          <td width="30%" height="25" align="right" valign="middle" bgcolor="#FFFFFF" class="STYLE1">新密码：</td>
          <td height="25" align="left" valign="middle" bgcolor="#FFFFFF" style="padding-left:7px">
		  <INPUT value="" onMouseOver="" style="BORDER-RIGHT: #f7f7f7 0px solid; BORDER-TOP: #f7f7f7 0px solid; FONT-SIZE: 9pt; BORDER-LEFT: #f7f7f7 0px solid; WIDTH: 100px; BORDER-BOTTOM: #c0c0c0 1px solid; HEIGHT: 16px; BACKGROUND-COLOR: #EEE1ED" onfocus=this.select(); onMouseOut="" maxLength="50" name="newpass" value="" id="newpass" type="password" this.style.background="#ffffff";>
		  <font color="red"><span id="res">*</span></font>
		  </td>
        </tr>
        
        <tr>
          <td width="30%" height="25" align="right" valign="middle" bgcolor="#FFFFFF" class="STYLE1">确认密码：</td>
          <td height="25" align="left" valign="middle" bgcolor="#FFFFFF" style="padding-left:7px">
		  <INPUT value="" onMouseOver="" style="BORDER-RIGHT: #f7f7f7 0px solid; BORDER-TOP: #f7f7f7 0px solid; FONT-SIZE: 9pt; BORDER-LEFT: #f7f7f7 0px solid; WIDTH: 100px; BORDER-BOTTOM: #c0c0c0 1px solid; HEIGHT: 16px; BACKGROUND-COLOR: #EEE1ED" onfocus=this.select(); onMouseOut="" maxLength="50" name="newpass1" value="" id="newpass1" type="password" this.style.background="#ffffff";>
		  <font color="red"><span id="res">*</span></font>
		  </td>
        </tr>
        <tr>
          <td height="30" colspan="2" align="center" valign="middle" bgcolor="#FFFFFF">
		  <input type="hidden" value="pass" name="method"/>
		  <input type="button" value="提交" onclick="check();"/>
		  </td>
        </tr>
      </table>
	  </form>
        </td>
        <td width="9" background="images/tab_16.gif">&nbsp;</td>
      </tr>
    </table>
    </td>
  </tr>
  <tr>
    <td height="29">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="29"><img src="images/tab_20.gif" width="15" height="29" /></td>
        <td background="images/tab_21.gif">
        &nbsp;</td>
        <td width="14"><img src="images/tab_22.gif" width="14" height="29" /></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>

</html>
<script type="text/javascript">
<!--
var message = "<%=session.getAttribute("message")%>";
if(message!=null && message!="null" && message !=""){
   alert(message);
  }
//-->
</script>
<%
	session.removeAttribute("message");
%>